namespace Cos.Core.NHibernate
{
    using System;
    using System.Collections.Generic;

    using Cos.Core.Model.Blog;

    public class ArticleDataModel : DataModelBase<Article>
    {
        // Properties
        // public virtual IEnumerable<ArticleCultureDataModel> ArticleCultures { get; set; }

        // public virtual IEnumerable<ArticleSubscriberDataModel> ArticleSuscribers { get; set; }

        // public virtual IEnumerable<BlogArticleTagDataModel> BlogArticleTags { get; set; }

        //public virtual BlogDataModel Blog { get; set; }

        public virtual int BlogId { get; set; }

        public virtual DateTime CreationDate { get; set; }

        public virtual int Id { get; set; }

        // Methods
        public override void Fill(Article model)
        {
            throw new NotImplementedException();
        }

        public override Article ToModel()
        {
            // Loads an article for the default culture
            throw new NotImplementedException();
        }

        public virtual Article ToModel(CultureDataModel culture)
        {
            throw new NotImplementedException();
        }

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as ArticleDataModel;

            return model != null && this.Id == model.Id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }
    }
}